/********************************************************************
	created:	2014/08/06
	created:	6:8:2014   12:15
	filename: 	suffix
	file ext:	h
	author:		liyiysngg@gmail.com
	
	purpose:	configuration header file
	
	remarks:	This file is intended to be stable, and relatively unchanging.
				It should contain boilerplate code only - no compiler specific
				code unless it is unavoidable - no changes unless unavoidable.
*********************************************************************/

#ifndef suffix_h__
#define suffix_h__

#if defined(__GNUC__) && (__GNUC__ >= 4)
//
// Some GCC-4.x versions issue warnings even when __extension__ is used,
// so use this as a workaround:
//
#pragma GCC system_header
#endif

//
// ensure that visibility macros are always defined, thus symplifying use
//
#ifndef XLL_SYMBOL_EXPORT
# define XLL_SYMBOL_EXPORT
#endif
#ifndef XLL_SYMBOL_IMPORT
# define XLL_SYMBOL_IMPORT
#endif
#ifndef XLL_SYMBOL_VISIBLE
# define XLL_SYMBOL_VISIBLE
#endif

//
// look for long long by looking for the appropriate macros in <limits.h>.
// Note that we use limits.h rather than climits for maximal portability,
// remember that since these just declare a bunch of macros, there should be
// no namespace issues from this.
//
#if !defined(XLL_HAS_LONG_LONG) && !defined(XLL_NO_LONG_LONG)                                              \
   && !defined(XLL_MSVC) && !defined(__BORLANDC__)
# include <limits.h>
# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
#   define XLL_HAS_LONG_LONG
# else
#   define XLL_NO_LONG_LONG
# endif
#endif

// GCC 3.x will clean up all of those nasty macro definitions that
// XLL_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine
// it under GCC 3.x.
#if defined(__GNUC__) && (__GNUC__ >= 3) && defined(XLL_NO_CTYPE_FUNCTIONS)
#  undef XLL_NO_CTYPE_FUNCTIONS
#endif

//
// Assume any extensions are in namespace std:: unless stated otherwise:
//
#  ifndef XLL_STD_EXTENSION_NAMESPACE
#    define XLL_STD_EXTENSION_NAMESPACE std
#  endif

//
// If cv-qualified specializations are not allowed, then neither are cv-void ones:
//
#  if defined(XLL_NO_CV_SPECIALIZATIONS) \
      && !defined(XLL_NO_CV_VOID_SPECIALIZATIONS)
#     define XLL_NO_CV_VOID_SPECIALIZATIONS
#  endif

//
// If there is no numeric_limits template, then it can't have any compile time
// constants either!
//
#  if defined(XLL_NO_LIMITS) \
      && !defined(XLL_NO_LIMITS_COMPILE_TIME_CONSTANTS)
#     define XLL_NO_LIMITS_COMPILE_TIME_CONSTANTS
#     define XLL_NO_MS_INT64_NUMERIC_LIMITS
#     define XLL_NO_LONG_LONG_NUMERIC_LIMITS
#  endif

//
// if there is no long long then there is no specialisation
// for numeric_limits<long long> either:
//
#if !defined(XLL_HAS_LONG_LONG) && !defined(XLL_NO_LONG_LONG_NUMERIC_LIMITS)
#  define XLL_NO_LONG_LONG_NUMERIC_LIMITS
#endif

//
// if there is no __int64 then there is no specialisation
// for numeric_limits<__int64> either:
//
#if !defined(XLL_HAS_MS_INT64) && !defined(XLL_NO_MS_INT64_NUMERIC_LIMITS)
#  define XLL_NO_MS_INT64_NUMERIC_LIMITS
#endif

//
// if member templates are supported then so is the
// VC6 subset of member templates:
//
#  if !defined(XLL_NO_MEMBER_TEMPLATES) \
       && !defined(XLL_MSVC6_MEMBER_TEMPLATES)
#     define XLL_MSVC6_MEMBER_TEMPLATES
#  endif

//
// Without partial specialization, can't test for partial specialisation bugs:
//
#  if defined(XLL_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
      && !defined(XLL_BCB_PARTIAL_SPECIALIZATION_BUG)
#     define XLL_BCB_PARTIAL_SPECIALIZATION_BUG
#  endif

//
// Without partial specialization, we can't have array-type partial specialisations:
//
#  if defined(XLL_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
      && !defined(XLL_NO_ARRAY_TYPE_SPECIALIZATIONS)
#     define XLL_NO_ARRAY_TYPE_SPECIALIZATIONS
#  endif

//
// Without partial specialization, std::iterator_traits can't work:
//
#  if defined(XLL_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
      && !defined(XLL_NO_STD_ITERATOR_TRAITS)
#     define XLL_NO_STD_ITERATOR_TRAITS
#  endif

//
// Without partial specialization, partial
// specialization with default args won't work either:
//
#  if defined(XLL_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
      && !defined(XLL_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS)
#     define XLL_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
#  endif

//
// Without member template support, we can't have template constructors
// in the standard library either:
//
#  if defined(XLL_NO_MEMBER_TEMPLATES) \
      && !defined(XLL_MSVC6_MEMBER_TEMPLATES) \
      && !defined(XLL_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
#     define XLL_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
#  endif

//
// Without member template support, we can't have a conforming
// std::allocator template either:
//
#  if defined(XLL_NO_MEMBER_TEMPLATES) \
      && !defined(XLL_MSVC6_MEMBER_TEMPLATES) \
      && !defined(XLL_NO_STD_ALLOCATOR)
#     define XLL_NO_STD_ALLOCATOR
#  endif

//
// without ADL support then using declarations will break ADL as well:
//
#if defined(XLL_NO_ARGUMENT_DEPENDENT_LOOKUP) && !defined(XLL_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
#  define XLL_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
#endif

//
// Without typeid support we have no dynamic RTTI either:
//
#if defined(XLL_NO_TYPEID) && !defined(XLL_NO_RTTI)
#  define XLL_NO_RTTI
#endif

//
// If we have a standard allocator, then we have a partial one as well:
//
#if !defined(XLL_NO_STD_ALLOCATOR)
#  define XLL_HAS_PARTIAL_STD_ALLOCATOR
#endif

//
// We can't have a working std::use_facet if there is no std::locale:
//
#  if defined(XLL_NO_STD_LOCALE) && !defined(XLL_NO_STD_USE_FACET)
#     define XLL_NO_STD_USE_FACET
#  endif

//
// We can't have a std::messages facet if there is no std::locale:
//
#  if defined(XLL_NO_STD_LOCALE) && !defined(XLL_NO_STD_MESSAGES)
#     define XLL_NO_STD_MESSAGES
#  endif

//
// We can't have a working std::wstreambuf if there is no std::locale:
//
#  if defined(XLL_NO_STD_LOCALE) && !defined(XLL_NO_STD_WSTREAMBUF)
#     define XLL_NO_STD_WSTREAMBUF
#  endif

//
// We can't have a <cwctype> if there is no <cwchar>:
//
#  if defined(XLL_NO_CWCHAR) && !defined(XLL_NO_CWCTYPE)
#     define XLL_NO_CWCTYPE
#  endif

//
// We can't have a swprintf if there is no <cwchar>:
//
#  if defined(XLL_NO_CWCHAR) && !defined(XLL_NO_SWPRINTF)
#     define XLL_NO_SWPRINTF
#  endif

//
// If Win32 support is turned off, then we must turn off
// threading support also, unless there is some other
// thread API enabled:
//
#if defined(XLL_DISABLE_WIN32) && defined(_WIN32) \
   && !defined(XLL_DISABLE_THREADS) && !defined(XLL_HAS_PTHREADS)
#  define XLL_DISABLE_THREADS
#endif

//
// Turn on threading support if the compiler thinks that it's in
// multithreaded mode.  We put this here because there are only a
// limited number of macros that identify this (if there's any missing
// from here then add to the appropriate compiler section):
//
#if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \
    || defined(_PTHREADS) || defined(__APPLE__) || defined(__DragonFly__)) \
    && !defined(XLL_HAS_THREADS)
#  define XLL_HAS_THREADS
#endif

//
// Turn threading support off if XLL_DISABLE_THREADS is defined:
//
#if defined(XLL_DISABLE_THREADS) && defined(XLL_HAS_THREADS)
#  undef XLL_HAS_THREADS
#endif

//
// Turn threading support off if we don't recognise the threading API:
//
#if defined(XLL_HAS_THREADS) && !defined(XLL_HAS_PTHREADS)\
      && !defined(XLL_HAS_WINTHREADS) && !defined(XLL_HAS_BETHREADS)\
      && !defined(XLL_HAS_MPTASKS)
#  undef XLL_HAS_THREADS
#endif

//
// Turn threading detail macros off if we don't (want to) use threading
//
#ifndef XLL_HAS_THREADS
#  undef XLL_HAS_PTHREADS
#  undef XLL_HAS_PTHREAD_MUTEXATTR_SETTYPE
#  undef XLL_HAS_PTHREAD_YIELD
#  undef XLL_HAS_PTHREAD_DELAY_NP
#  undef XLL_HAS_WINTHREADS
#  undef XLL_HAS_BETHREADS
#  undef XLL_HAS_MPTASKS
#endif

//
// If the compiler claims to be C99 conformant, then it had better
// have a <stdint.h>:
//
#  if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
#     define XLL_HAS_STDINT_H
#     ifndef XLL_HAS_LOG1P
#        define XLL_HAS_LOG1P
#     endif
#     ifndef XLL_HAS_EXPM1
#        define XLL_HAS_EXPM1
#     endif
#  endif

//
// Define XLL_NO_SLIST and XLL_NO_HASH if required.
// Note that this is for backwards compatibility only.
//
#  if !defined(XLL_HAS_SLIST) && !defined(XLL_NO_SLIST)
#     define XLL_NO_SLIST
#  endif

#  if !defined(XLL_HAS_HASH) && !defined(XLL_NO_HASH)
#     define XLL_NO_HASH
#  endif

//
// Set XLL_SLIST_HEADER if not set already:
//
#if defined(XLL_HAS_SLIST) && !defined(XLL_SLIST_HEADER)
#  define XLL_SLIST_HEADER <slist>
#endif

//
// Set XLL_HASH_SET_HEADER if not set already:
//
#if defined(XLL_HAS_HASH) && !defined(XLL_HASH_SET_HEADER)
#  define XLL_HASH_SET_HEADER <hash_set>
#endif

//
// Set XLL_HASH_MAP_HEADER if not set already:
//
#if defined(XLL_HAS_HASH) && !defined(XLL_HASH_MAP_HEADER)
#  define XLL_HASH_MAP_HEADER <hash_map>
#endif

//  XLL_HAS_ABI_HEADERS
//  This macro gets set if we have headers that fix the ABI,
//  and prevent ODR violations when linking to external libraries:
#if defined(XLL_ABI_PREFIX) && defined(XLL_ABI_SUFFIX) && !defined(XLL_HAS_ABI_HEADERS)
#  define XLL_HAS_ABI_HEADERS
#endif

#if defined(XLL_HAS_ABI_HEADERS) && defined(XLL_DISABLE_ABI_HEADERS)
#  undef XLL_HAS_ABI_HEADERS
#endif

//  XLL_NO_STDC_NAMESPACE workaround  --------------------------------------//
//  Because std::size_t usage is so common, even in XLL headers which do not
//  otherwise use the C library, the <cstddef> workaround is included here so
//  that ugly workaround code need not appear in many other XLL headers.
//  NOTE WELL: This is a workaround for non-conforming compilers; <cstddef>
//  must still be #included in the usual places so that <cstddef> inclusion
//  works as expected with standard conforming compilers.  The resulting
//  double inclusion of <cstddef> is harmless.

# if defined(XLL_NO_STDC_NAMESPACE) && defined(__cplusplus)
#   include <cstddef>
    namespace std { using ::ptrdiff_t; using ::size_t; }
# endif

//  Workaround for the unfortunate min/max macros defined by some platform headers

#define XLL_PREVENT_MACRO_SUBSTITUTION

#ifndef XLL_USING_STD_MIN
#  define XLL_USING_STD_MIN() using std::min
#endif

#ifndef XLL_USING_STD_MAX
#  define XLL_USING_STD_MAX() using std::max
#endif

//  XLL_NO_STD_MIN_MAX workaround  -----------------------------------------//

#  if defined(XLL_NO_STD_MIN_MAX) && defined(__cplusplus)

namespace std {
  template <class _Tp>
  inline const _Tp& min XLL_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) {
    return __b < __a ? __b : __a;
  }
  template <class _Tp>
  inline const _Tp& max XLL_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) {
    return  __a < __b ? __b : __a;
  }
}

#  endif

// XLL_STATIC_CONSTANT workaround --------------------------------------- //
// On compilers which don't allow in-class initialization of static integral
// constant members, we must use enums as a workaround if we want the constants
// to be available at compile-time. This macro gives us a convenient way to
// declare such constants.

#  ifdef XLL_NO_INCLASS_MEMBER_INITIALIZATION
#       define XLL_STATIC_CONSTANT(type, assignment) enum { assignment }
#  else
#     define XLL_STATIC_CONSTANT(type, assignment) static const type assignment
#  endif

// XLL_USE_FACET / HAS_FACET workaround ----------------------------------//
// When the standard library does not have a conforming std::use_facet there
// are various workarounds available, but they differ from library to library.
// The same problem occurs with has_facet.
// These macros provide a consistent way to access a locale's facets.
// Usage:
//    replace
//       std::use_facet<Type>(loc);
//    with
//       XLL_USE_FACET(Type, loc);
//    Note do not add a std:: prefix to the front of XLL_USE_FACET!
//  Use for XLL_HAS_FACET is analogous.

#if defined(XLL_NO_STD_USE_FACET)
#  ifdef XLL_HAS_TWO_ARG_USE_FACET
#     define XLL_USE_FACET(Type, loc) std::use_facet(loc, static_cast<Type*>(0))
#     define XLL_HAS_FACET(Type, loc) std::has_facet(loc, static_cast<Type*>(0))
#  elif defined(XLL_HAS_MACRO_USE_FACET)
#     define XLL_USE_FACET(Type, loc) std::_USE(loc, Type)
#     define XLL_HAS_FACET(Type, loc) std::_HAS(loc, Type)
#  elif defined(XLL_HAS_STLP_USE_FACET)
#     define XLL_USE_FACET(Type, loc) (*std::_Use_facet<Type >(loc))
#     define XLL_HAS_FACET(Type, loc) std::has_facet< Type >(loc)
#  endif
#else
#  define XLL_USE_FACET(Type, loc) std::use_facet< Type >(loc)
#  define XLL_HAS_FACET(Type, loc) std::has_facet< Type >(loc)
#endif

// XLL_NESTED_TEMPLATE workaround ------------------------------------------//
// Member templates are supported by some compilers even though they can't use
// the A::template member<U> syntax, as a workaround replace:
//
// typedef typename A::template rebind<U> binder;
//
// with:
//
// typedef typename A::XLL_NESTED_TEMPLATE rebind<U> binder;

#ifndef XLL_NO_MEMBER_TEMPLATE_KEYWORD
#  define XLL_NESTED_TEMPLATE template
#else
#  define XLL_NESTED_TEMPLATE
#endif

// XLL_UNREACHABLE_RETURN(x) workaround -------------------------------------//
// Normally evaluates to nothing, unless XLL_NO_UNREACHABLE_RETURN_DETECTION
// is defined, in which case it evaluates to return x; Use when you have a return
// statement that can never be reached.

#ifdef XLL_NO_UNREACHABLE_RETURN_DETECTION
#  define XLL_UNREACHABLE_RETURN(x) return x;
#else
#  define XLL_UNREACHABLE_RETURN(x)
#endif

// XLL_DEDUCED_TYPENAME workaround ------------------------------------------//
//
// Some compilers don't support the use of `typename' for dependent
// types in deduced contexts, e.g.
//
//     template <class T> void f(T, typename T::type);
//                                  ^^^^^^^^
// Replace these declarations with:
//
//     template <class T> void f(T, XLL_DEDUCED_TYPENAME T::type);

#ifndef XLL_NO_DEDUCED_TYPENAME
#  define XLL_DEDUCED_TYPENAME typename
#else
#  define XLL_DEDUCED_TYPENAME
#endif

#ifndef XLL_NO_TYPENAME_WITH_CTOR
#  define XLL_CTOR_TYPENAME typename
#else
#  define XLL_CTOR_TYPENAME
#endif

// long long workaround ------------------------------------------//
// On gcc (and maybe other compilers?) long long is alway supported
// but it's use may generate either warnings (with -ansi), or errors
// (with -pedantic -ansi) unless it's use is prefixed by __extension__
//
#if defined(XLL_HAS_LONG_LONG) && defined(__cplusplus)
namespace XLL{
#  ifdef __GNUC__
   __extension__ typedef long long long_long_type;
   __extension__ typedef unsigned long long ulong_long_type;
#  else
   typedef long long long_long_type;
   typedef unsigned long long ulong_long_type;
#  endif
}
#endif
// same again for __int128:
#if defined(XLL_HAS_INT128) && defined(__cplusplus)
namespace XLL{
#  ifdef __GNUC__
   __extension__ typedef __int128 int128_type;
   __extension__ typedef unsigned __int128 uint128_type;
#  else
   typedef __int128 int128_type;
   typedef unsigned __int128 uint128_type;
#  endif
}
#endif

// XLL_[APPEND_]EXPLICIT_TEMPLATE_[NON_]TYPE macros --------------------------//

// These macros are obsolete. Port away and remove.

#  define XLL_EXPLICIT_TEMPLATE_TYPE(t)
#  define XLL_EXPLICIT_TEMPLATE_TYPE_SPEC(t)
#  define XLL_EXPLICIT_TEMPLATE_NON_TYPE(t, v)
#  define XLL_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)

#  define XLL_APPEND_EXPLICIT_TEMPLATE_TYPE(t)
#  define XLL_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t)
#  define XLL_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v)
#  define XLL_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v)

// When XLL_NO_STD_TYPEINFO is defined, we can just import
// the global definition into std namespace:
#if defined(XLL_NO_STD_TYPEINFO) && defined(__cplusplus)
#include <typeinfo>
namespace std{ using ::type_info; }
#endif

// ---------------------------------------------------------------------------//

//
// Helper macro XLL_STRINGIZE:
// Converts the parameter X to a string after macro replacement
// on X has been performed.
//
#define XLL_STRINGIZE(X) XLL_DO_STRINGIZE(X)
#define XLL_DO_STRINGIZE(X) #X

//
// Helper macro XLL_JOIN:
// The following piece of macro magic joins the two
// arguments together, even when one of the arguments is
// itself a macro (see 16.3.1 in C++ standard).  The key
// is that macro expansion of macro arguments does not
// occur in XLL_DO_JOIN2 but does in XLL_DO_JOIN.
//
#define XLL_JOIN( X, Y ) XLL_DO_JOIN( X, Y )
#define XLL_DO_JOIN( X, Y ) XLL_DO_JOIN2(X,Y)
#define XLL_DO_JOIN2( X, Y ) X##Y

//
// Set some default values for compiler/library/platform names.
// These are for debugging config setup only:
//
#  ifndef XLL_COMPILER
#     define XLL_COMPILER "Unknown ISO C++ Compiler"
#  endif
#  ifndef XLL_STDLIB
#     define XLL_STDLIB "Unknown ISO standard library"
#  endif
#  ifndef XLL_PLATFORM
#     if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) \
         || defined(_POSIX_SOURCE)
#        define XLL_PLATFORM "Generic Unix"
#     else
#        define XLL_PLATFORM "Unknown"
#     endif
#  endif

//
// Set some default values GPU support
//
#  ifndef XLL_GPU_ENABLED
#  define XLL_GPU_ENABLED
#  endif

// XLL_FORCEINLINE ---------------------------------------------//
// Macro to use in place of 'inline' to force a function to be inline
#if !defined(XLL_FORCEINLINE)
#  if defined(_MSC_VER)
#    define XLL_FORCEINLINE __forceinline
#  elif defined(__GNUC__) && __GNUC__ > 3
     // Clang also defines __GNUC__ (as 4)
#    define XLL_FORCEINLINE inline __attribute__ ((__always_inline__))
#  else
#    define XLL_FORCEINLINE inline
#  endif
#endif

// XLL_NOINLINE ---------------------------------------------//
// Macro to use in place of 'inline' to prevent a function to be inlined
#if !defined(XLL_NOINLINE)
#  if defined(_MSC_VER)
#    define XLL_NOINLINE __declspec(noinline)
#  elif defined(__GNUC__) && __GNUC__ > 3
     // Clang also defines __GNUC__ (as 4)
#    define XLL_NOINLINE __attribute__ ((__noinline__))
#  else
#    define XLL_NOINLINE
#  endif
#endif

// Branch prediction hints
// These macros are intended to wrap conditional expressions that yield true or false
//
//  if (XLL_LIKELY(var == 10))
//  {
//     // the most probable code here
//  }
//
#if !defined(XLL_LIKELY)
#  define XLL_LIKELY(x) x
#endif
#if !defined(XLL_UNLIKELY)
#  define XLL_UNLIKELY(x) x
#endif

// Type and data alignment specification
//
#if !defined(XLL_NO_CXX11_ALIGNAS)
#  define XLL_ALIGNMENT(x) alignas(x)
#elif defined(_MSC_VER)
#  define XLL_ALIGNMENT(x) __declspec(align(x))
#elif defined(__GNUC__)
#  define XLL_ALIGNMENT(x) __attribute__ ((__aligned__(x)))
#else
#  define XLL_NO_ALIGNMENT
#  define XLL_ALIGNMENT(x)
#endif

// Defaulted and deleted function declaration helpers
// These macros are intended to be inside a class definition.
// XLL_DEFAULTED_FUNCTION accepts the function declaration and its
// body, which will be used if the compiler doesn't support defaulted functions.
// XLL_DELETED_FUNCTION only accepts the function declaration. It
// will expand to a private function declaration, if the compiler doesn't support
// deleted functions. Because of this it is recommended to use XLL_DELETED_FUNCTION
// in the end of the class definition.
//
//  class my_class
//  {
//  public:
//      // Default-constructible
//      XLL_DEFAULTED_FUNCTION(my_class(), {})
//      // Copying prohibited
//      XLL_DELETED_FUNCTION(my_class(my_class const&))
//      XLL_DELETED_FUNCTION(my_class& operator= (my_class const&))
//  };
//
#if !(defined(XLL_NO_CXX11_DEFAULTED_FUNCTIONS) || defined(XLL_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS))
#   define XLL_DEFAULTED_FUNCTION(fun, body) fun = default;
#else
#   define XLL_DEFAULTED_FUNCTION(fun, body) fun body
#endif

#if !defined(XLL_NO_CXX11_DELETED_FUNCTIONS)
#   define XLL_DELETED_FUNCTION(fun) fun = delete;
#else
#   define XLL_DELETED_FUNCTION(fun) private: fun;
#endif

//
// Set XLL_NO_DECLTYPE_N3276 when XLL_NO_DECLTYPE is defined
//
#if defined(XLL_NO_CXX11_DECLTYPE) && !defined(XLL_NO_CXX11_DECLTYPE_N3276)
#define	XLL_NO_CXX11_DECLTYPE_N3276 XLL_NO_CXX11_DECLTYPE
#endif

//
// Helper macros XLL_NOEXCEPT, XLL_NOEXCEPT_IF, XLL_NOEXCEPT_EXPR
// These aid the transition to C++11 while still supporting C++03 compilers
//
#ifdef XLL_NO_CXX11_NOEXCEPT
#  define XLL_NOEXCEPT
#  define XLL_NOEXCEPT_OR_NOTHROW throw()
#  define XLL_NOEXCEPT_IF(Predicate)
#  define XLL_NOEXCEPT_EXPR(Expression) false
#else
#  define XLL_NOEXCEPT noexcept
#  define XLL_NOEXCEPT_OR_NOTHROW noexcept
#  define XLL_NOEXCEPT_IF(Predicate) noexcept((Predicate))
#  define XLL_NOEXCEPT_EXPR(Expression) noexcept((Expression))
#endif
//
// Helper macro XLL_FALLTHROUGH
// Fallback definition of XLL_FALLTHROUGH macro used to mark intended
// fall-through between case labels in a switch statement. We use a definition
// that requires a semicolon after it to avoid at least one type of misuse even
// on unsupported compilers.
//
#ifndef XLL_FALLTHROUGH
#  define XLL_FALLTHROUGH ((void)0)
#endif

//
// constexpr workarounds
//
#if defined(XLL_NO_CXX11_CONSTEXPR)
#define XLL_CONSTEXPR
#define XLL_CONSTEXPR_OR_CONST const
#else
#define XLL_CONSTEXPR constexpr
#define XLL_CONSTEXPR_OR_CONST constexpr
#endif

#define XLL_STATIC_CONSTEXPR  static XLL_CONSTEXPR_OR_CONST

//
// Set XLL_HAS_STATIC_ASSERT when XLL_NO_CXX11_STATIC_ASSERT is not defined
//
#if !defined(XLL_NO_CXX11_STATIC_ASSERT) && !defined(XLL_HAS_STATIC_ASSERT)
#  define XLL_HAS_STATIC_ASSERT
#endif

//
// Set XLL_HAS_RVALUE_REFS when XLL_NO_CXX11_RVALUE_REFERENCES is not defined
//
#if !defined(XLL_NO_CXX11_RVALUE_REFERENCES) && !defined(XLL_HAS_RVALUE_REFS)
#define XLL_HAS_RVALUE_REFS
#endif

//
// Set XLL_HAS_VARIADIC_TMPL when XLL_NO_CXX11_VARIADIC_TEMPLATES is not defined
//
#if !defined(XLL_NO_CXX11_VARIADIC_TEMPLATES) && !defined(XLL_HAS_VARIADIC_TMPL)
#define XLL_HAS_VARIADIC_TMPL
#endif

#endif // suffix_h__
